package com.ruoyi.carService.controller;

import com.ruoyi.carService.service.ICarTodayMerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yang
 * @version 1.0
 * @data 2024/9/10 10:48
 */
@RestController
@RequestMapping("/merchantInfo")
public class CarTodayMerchantController {
    @Autowired
    private ICarTodayMerchantService carTodayMerchantService;

    @RequestMapping("/getMerchantInfo")
    public ResponseEntity<String []> getCarTodayDingdan(){

        String carDayMerchant = carTodayMerchantService.getCarDayMerchant();
        String carTotalMerchant = carTodayMerchantService.getCarTotalMerchant();
        String [] strs = {carDayMerchant,carTotalMerchant};

        return ResponseEntity.ok(strs);
    }
}
